package com.ysd.lis.controller.cri;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.cri.CriRelease;
import com.ysd.lis.service.cri.CriReleaseService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 发布方式设置 前端控制器
 * </p>
 *
 * @author wh
 * @since 2025-02-11
 */
@RestController
@RequestMapping("/lis/cri/release")
public class CriReleaseController extends BaseController {

    @Autowired
    private CriReleaseService sysReleaseService;
    @ApiOperation("获取发布方式信息")
    @GetMapping("/findReleaseist")
    public Result findReleaseist(String keywords) {
        return sysReleaseService.findReleaseist(keywords);
    }

    @ApiOperation("新增或修改发布方式信息")
    @PostMapping("/saveOrUpdateRelease")
    public Result saveOrUpdateRelease(@RequestBody CriRelease sysRelease) {
        return sysReleaseService.saveOrUpdateRelease(sysRelease);
    }
    @ApiOperation("删除发布方式信息")
    @PostMapping("/deleteReleaseList")
    public Result deleteReleaseList(@RequestBody List<CriRelease> sysPost) {
        return sysReleaseService.deleteReleaseList(sysPost);
    }


}
